package com.wsmall.fenxiao.order.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {

  @Autowired
  private GoodsServiceClient goodsServiceClient;

  @ResponseBody
  @RequestMapping("hello")
  public Object hello(String hello) {
    log.info("调用order接口");
    return goodsServiceClient.getGoodsNames(hello);
  }

}
